package com.ysu.his.entity.prescription;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysu.his.base.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 处方实体类
 */
@Data
public class Prescription extends BaseEntity
{
    //唯一标识
    private Long id;

    //患者id
    private Long patientId;

    //患者姓名
    private String patientName;

    //医生id
    private Long doctorId;

    //医生姓名
    private String doctorName;

    //处方号
    private String prescriptionNo;

    //诊断信息
    private String diagnosisInfo;

    //处方金额
    private BigDecimal totalAmount;

    //处方状态
    private Integer status;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    //包含药品
    private List<PrescriptionItem> prescriptionItemList;

}
